﻿using System.Linq;
using CodeFinder.Common.Entities;

namespace CodeFinder.Common.Interfaces {
    public interface IPostService {
        int CountPost();
        Post FindPostById(int id);
        IQueryable<Post> Posts { get; }
        void Save(Post post);
        void Delete(int id);
        void AddComment(Comment comment);
        int CountComments(int postId);
    }
}
